package ATM;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * 查询
 */
public class SearchPanel extends JPanel {

    private JLabel input = new JLabel("您的余额为：");

    private JButton endBtn = new JButton(new ImageIcon("src/ATM/image/buttonOff.jpg"));
    private Font font = new Font("宋体", Font.BOLD,25);
    public SearchPanel(ATMFrame atm){
        this.setLayout(null);
        this.setOpaque(false);



        input.setBounds(320,250,250,50);
        input.setFont(font);
        endBtn.setBounds(824,600,140,50);
        endBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                atm.showPanel("menu");
            }
        });

        this.add(input);
        this.add(endBtn);
    }
}
